package online.lmds.sdmanage.main.message.entity;


import com.fasterxml.jackson.databind.JsonNode;
import jdk.nashorn.internal.parser.JSONParser;

/**
 * Created by Brighten Ma on 2017/5/1.
 */
public class MqttLog {

    public static final int TYPE_NOTIFY_STATUS_DEVICE = 10001;
    public static final int TYPE_NOTIFY_STATUS_GROUP = 10002;
    public static final int TYPE_NOTIFY_STATUS_WEB = 10003;

    public static final int TYPE_NOTIFY_CTRL_DEVICE= 20101;
    public static final int TYPE_NOTIFY_CTRL_DEVICE_POWER= 20101;
    public static final int TYPE_NOTIFY_CTRL_GROUP= 20102;

    public static final int TYPE_CTRL_DEVICE = 30001;
    public static final int TYPE_CTRL_GROUP = 30002;

    public static final int TYPE_PUSH = 40001;

    private Integer id;
    private Integer msgType;
    private String topic;
    private String fromId;
    private String deviceId;
    private String deviceType;
    private Integer deviceTypeId;

    private Integer deviceStatus;
    private String mark;
    private JsonNode data;
    private Integer isReceive;
    private Integer cacheStatus;


    /**
     * {
     * "id": 1,
     * "msgType": 1,
     * "topic": "someTopic",
     * "fromId": 1,
     * "deviceId": "value",
     * "deviceType": "Yeelight Color",
     * "deviceTypeId": 2,
     * "deviceStatus": 2,
     * "mark": "mark12333",
     * "date": {},
     * "isReceive": 1,
     * "cacheStatus": 1
     * }
     **/

    public Integer getDeviceStatus() {
        return deviceStatus;
    }

    public void setDeviceStatus(Integer deviceStatus) {
        this.deviceStatus = deviceStatus;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getMsgType() {
        return msgType;
    }

    public void setMsgType(Integer msgType) {
        this.msgType = msgType;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public String getFromId() {
        return fromId;
    }

    public void setFromId(String fromId) {
        this.fromId = fromId;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }

    public Integer getDeviceTypeId() {
        return deviceTypeId;
    }

    public void setDeviceTypeId(Integer deviceTypeId) {
        this.deviceTypeId = deviceTypeId;
    }

    public String getMark() {
        return mark;
    }

    public void setMark(String mark) {
        this.mark = mark;
    }

    public JsonNode getData() {

        return data;
    }

    public void setData(JsonNode data) {
        this.data = data;
    }


    public Integer getIsReceive() {
        return isReceive;
    }

    public void setIsReceive(Integer isReceive) {
        this.isReceive = isReceive;
    }

    public Integer getCacheStatus() {
        return cacheStatus;
    }

    public void setCacheStatus(Integer cacheStatus) {
        this.cacheStatus = cacheStatus;
    }
}
